var foo = true

if(foo) {
    var a  = 1;
    const b = 2;

    a = 3;
    // b = 4; // TypeError Assignment to constant variable;
}

console.log(a)
console.log(b)// ReferenceError
